printing: Do not truncate job names in GtkPrintOperation
authorCarlos Garcia Campos <cgarcia@igalia.com>
Tue, 8 Nov 2016 10:44:44 +0000 (11:44 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 10 Nov 2016 15:57:30 +0000 (16:57 +0100)
commitc836be0508b51ecccd893a833b0f290c627ad3bf
tree83724747a32880ac1312f24bc914c64807f6f5f6
parent7b2313a6df3bc8c9b3c25dbea319051b3d9cd789
printing: Do not truncate job names in GtkPrintOperation

We are currently truncating job names to 255 bytes, because that's the
maximum allowed length of job-name attribute in CUPS. This is a CUPS
limitation that GtkPrintOperation shouldn't need to know, and it
shouldn't affect other backends, that might have other limitations or
even no limitation at all. This has another side effect, that what you
set as GtkPrintOperation:job-name could be different to what you get if
the property is truncated, this is not documented in
gtk_print_operation_set_job_name(). So, I think the job name should be
truncated by the CUPS backend, right before setting the job-name
attribute.

https://bugzilla.gnome.org/show_bug.cgi?id=774097
gtk/gtkprintoperation.c
modules/printbackends/cups/gtkprintbackendcups.c